// 数， 第一阶段

#include <iostream>
using namespace std;

int main() {
    char ch = 'y';

    while (ch == 'y') {
        cout << "请输入一个1~1000之间的数: ";

        int number;
        cin >> number;


        if (number > 0 && number < 1001) {
            cout << "在规定范围内,输入的数为 " << number << "\n";
        }
        else {
            cout << "输入的数超出了返回!\n";
        }

        cout << "再运行一次吗, y=是, n=否: ";
        cin >> ch;
    }
    cout << "再见\n";
}